.class public Lcom/glympse/platform/common/SearchResult;
.super Ljava/lang/Object;
.source "SearchResult.java"


# instance fields
.field public m_dLatitude:D

.field public m_dLongitude:D

.field public m_strAddress:Ljava/lang/String;

.field public m_strCity:Ljava/lang/String;

.field public m_strCountry:Ljava/lang/String;

.field public m_strPhoneNumber:Ljava/lang/String;

.field public m_strPostalCode:Ljava/lang/String;

.field public m_strState:Ljava/lang/String;

.field public m_strStreet:Ljava/lang/String;

.field public m_strTitle:Ljava/lang/String;

.field public m_strType:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const-wide/16 v1, 0x0

    const/4 v0, 0x0

    .line 14
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 16
    iput-wide v1, p0, Lcom/glympse/platform/common/SearchResult;->m_dLatitude:D

    .line 17
    iput-wide v1, p0, Lcom/glympse/platform/common/SearchResult;->m_dLongitude:D

    .line 18
    iput-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strType:Ljava/lang/String;

    .line 19
    iput-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strTitle:Ljava/lang/String;

    .line 20
    iput-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strStreet:Ljava/lang/String;

    .line 21
    iput-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strCity:Ljava/lang/String;

    .line 22
    iput-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strState:Ljava/lang/String;

    .line 23
    iput-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strPostalCode:Ljava/lang/String;

    .line 24
    iput-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strCountry:Ljava/lang/String;

    .line 25
    iput-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strPhoneNumber:Ljava/lang/String;

    .line 26
    iput-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strAddress:Ljava/lang/String;

    .line 14
    return-void
.end method


# virtual methods
.method public Complete(Z)Z
    .locals 4
    .parameter "fShowCountry"

    .prologue
    const-wide/16 v2, 0x0

    .line 32
    iget-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strTitle:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 34
    iget-wide v0, p0, Lcom/glympse/platform/common/SearchResult;->m_dLatitude:D

    cmpl-double v0, v2, v0

    if-eqz v0, :cond_0

    iget-wide v0, p0, Lcom/glympse/platform/common/SearchResult;->m_dLongitude:D

    cmpl-double v0, v2, v0

    if-nez v0, :cond_9

    :cond_0
    const-string v0, "No name"

    :goto_0
    iput-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strTitle:Ljava/lang/String;

    .line 39
    :cond_1
    iget-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strStreet:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_a

    const-string v0, ""

    :goto_1
    iput-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strAddress:Ljava/lang/String;

    .line 42
    iget-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strCity:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strState:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strPostalCode:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_6

    .line 44
    :cond_2
    iget-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strAddress:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 45
    iget-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strAddress:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_b

    const-string v0, ""

    :goto_2
    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 46
    iget-object v1, p0, Lcom/glympse/platform/common/SearchResult;->m_strCity:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_c

    const-string v1, ""

    :goto_3
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 47
    iget-object v1, p0, Lcom/glympse/platform/common/SearchResult;->m_strCity:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_3

    iget-object v1, p0, Lcom/glympse/platform/common/SearchResult;->m_strState:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_d

    :cond_3
    const-string v1, ""

    :goto_4
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 48
    iget-object v1, p0, Lcom/glympse/platform/common/SearchResult;->m_strState:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_e

    const-string v1, ""

    :goto_5
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 49
    iget-object v1, p0, Lcom/glympse/platform/common/SearchResult;->m_strCity:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/glympse/platform/common/SearchResult;->m_strState:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_5

    :cond_4
    iget-object v1, p0, Lcom/glympse/platform/common/SearchResult;->m_strPostalCode:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_f

    :cond_5
    const-string v1, ""

    :goto_6
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 50
    iget-object v1, p0, Lcom/glympse/platform/common/SearchResult;->m_strPostalCode:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_10

    const-string v1, ""

    :goto_7
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strAddress:Ljava/lang/String;

    .line 54
    :cond_6
    if-eqz p1, :cond_7

    iget-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strCountry:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_7

    .line 56
    iget-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strAddress:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strAddress:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_11

    const-string v0, ""

    :goto_8
    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/glympse/platform/common/SearchResult;->m_strCountry:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strAddress:Ljava/lang/String;

    .line 60
    :cond_7
    iget-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strPhoneNumber:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_8

    .line 62
    iget-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strAddress:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strAddress:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_12

    const-string v0, ""

    :goto_9
    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/glympse/platform/common/SearchResult;->m_strPhoneNumber:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strAddress:Ljava/lang/String;

    .line 65
    :cond_8
    const/4 v0, 0x1

    return v0

    .line 35
    :cond_9
    new-instance v0, Ljava/lang/StringBuilder;

    iget-wide v1, p0, Lcom/glympse/platform/common/SearchResult;->m_dLatitude:D

    invoke-static {v1, v2}, Lcom/glympse/platform/common/Helpers;->LatitudeToStr(D)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, ", "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-wide v1, p0, Lcom/glympse/platform/common/SearchResult;->m_dLongitude:D

    invoke-static {v1, v2}, Lcom/glympse/platform/common/Helpers;->LongitudeToStr(D)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_0

    .line 39
    :cond_a
    iget-object v0, p0, Lcom/glympse/platform/common/SearchResult;->m_strStreet:Ljava/lang/String;

    goto/16 :goto_1

    .line 45
    :cond_b
    const-string v0, "\n"

    goto/16 :goto_2

    .line 46
    :cond_c
    iget-object v1, p0, Lcom/glympse/platform/common/SearchResult;->m_strCity:Ljava/lang/String;

    goto/16 :goto_3

    .line 47
    :cond_d
    const-string v1, ", "

    goto/16 :goto_4

    .line 48
    :cond_e
    iget-object v1, p0, Lcom/glympse/platform/common/SearchResult;->m_strState:Ljava/lang/String;

    goto/16 :goto_5

    .line 49
    :cond_f
    const-string v1, " "

    goto/16 :goto_6

    .line 50
    :cond_10
    iget-object v1, p0, Lcom/glympse/platform/common/SearchResult;->m_strPostalCode:Ljava/lang/String;

    goto/16 :goto_7

    .line 56
    :cond_11
    const-string v0, "\n"

    goto/16 :goto_8

    .line 62
    :cond_12
    const-string v0, "\n"

    goto :goto_9
.end method
